package common.config.feign;

import cn.hutool.core.exceptions.ExceptionUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * 描述
 *
 * @author 米泽鹏
 * @since 2023-8-11 下午 5:50
 */
@Slf4j
public class FallbackFactoryUtil {

	public static <T> T create(Throwable throwable, T t) {
		log.error(ExceptionUtil.getSimpleMessage(throwable));
		return t;
	}

}
